#include "ScreenManager.hpp"

//! Setting values for static variables.
ScreenManager* ScreenManager::m_instance = 0;

//! GetInstance method returns pointer to ScreenManager instance
//! and ensures that only one such instance exists.
ScreenManager* ScreenManager::GetInstance()
{
	if( !m_instance )
	{
		m_instance = new ScreenManager;
	}

	return m_instance;
}

ScreenManager::ScreenManager()
{
}

//! Sets current screen in SceneManager.
void ScreenManager::SetCurrentScreen(Screen *currentScreen)
{
	m_currentScreen = currentScreen;
}

Screen* ScreenManager::GetCurrentScreen() const
{
	return m_currentScreen;
}